package com.beney.common;

/**
 * 角色身份的常用信息
 *
 *
 * @author Beney
 */
public class Identity {
    private Identity() {
    }

    public static final String XIAO_XUE     = "小学";
    public static final String CHU_ZHONG    = "初中";
    public static final String GAO_ZHOGN    = "高中";

    /**
     * 检查身份id是否合法
     *
     * @param id 身份名
     * @return true-合法；false-不合法
     */
    public static boolean IsLegalIdentity(String id) {
        return id.equals(XIAO_XUE)
                || id.equals(CHU_ZHONG)
                || id.equals(GAO_ZHOGN);
    }
}
